<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>待发货订单管理</title>
		<script type="text/javascript">
			var controller = '__CONTROLLER__';
			var root = '__ROOT__';
		</script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/admin_style.css" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/table.css" />
<script src="__STATIC__/js/jquery-1.7.2.min.js"></script>
<script src="__PUBLIC__/js/jquery-1.4.4.min.js"></script>
 <script src="__STATIC__/js/alert.js"></script>  
<script src="__PUBLIC__/js/iframe.js"></script>
<script src="__PUBLIC__/js/order.js"></script>
</head>
<body class="right_body">
	<div class="body">
		<div class="top_subnav">CMS内容管理平台 ＞ 待发货订单管理</div>


		<div style="clear:both"></div>
		<div class="use_meth">
			<div class="title">
				<div class="title_info light">
					待发货订单管理
				</div>
			</div>
	<!-- /////////////////////// -->
	 <table class="hd-table hd-table-list">
        <thead>
        <tr>
            <td>id</td>
            <td>商品名称</td>
            <td width="200">价格</td>
            <!--<td>库存</td>-->
            <td>订单号</td>
            <td>下单时间</td>
            <td width="200">操作</td>
        </tr>
        </thead>

       
       	<foreach from="$order" key="$k" value="$v">
            <tr>
            <td>{$v.oid}</td>
            <td width="450"><a href="__ROOT__/index.php/index/content/index/gid/{$v.gid}" target="_blank">{$v.goods_name}</a></td>
            <td>市场价:<s>{$v.goods_market}</s><br/>商城价:{$v.goods_mall}</td>
            <!--<td>{$v.goods_inventory}</td>-->
            <td>{$v.order_nums}</td>
            <td>{$v.order_addTime|date:'y-m-d',@@}</td>
            <td width="300">
            	<if value="$v.order_status == 0"><a href="javascript::" class="suregoods"><span class="work">未支付</span></a></if>
            	<if value="$v.order_status == 1"><a href="javascript::" class="suregoods sendGoods" sendGoods='sendGoods' oid = "{$v.oid}" ><span class="work">未发货</span></a></if>
            	<if value="$v.order_status == 2"><a href="javascript::" class="suregoods" ><span class="work">已发货</span></a></if>
            	<if value="$v.order_status == 3"><a href="javascript::" class="suregoods" tobesure='suregoods' oid = "{$v.oid}" ><span class="work">待确认</span></a></if>
            	<if value="$v.order_status == 4"><a href="javascript::" class="suregoods" tobesure='suregoods' oid = "{$v.oid}" ><span class="work">交易完成</span></a></if>
            </td>
            </tr>
        </foreach>
               
    </table>
			<!-- /////////////////////// -->
		</div>
	
	</div>

<script type="text/javascript">
    function hd_modal_del(id) {
        hd_modal({
            width: 400,//宽度
            height: 150,//高度
            title: '确认删除吗？',//标题
            content: '',//提示信息
            button: true,//显示按钮
            button_success: "确定",//确定按钮文字
            button_cancel: "取消",//关闭按钮文字
            timeout: 0,//自动关闭时间 0：不自动关闭
            shade: false,//背景遮罩
            shadeOpacity: 0.4,//背景透明度
            success: function () {//点击确定后的事件
                location.href = "__CONTROLLER__" + '/del/gid/' + id;
            },
            cancel: function () {//点击关闭后的事件
                
            }
        });
    }
</script>


</body>
</html>
